﻿<metro:Window x:Class="SkypeTranslater.NewGroupWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:metro="http://schemas.codeplex.com/elysium/theme"
        Title="Group data" Height="250" Width="350" WindowStyle="ToolWindow" WindowStartupLocation="CenterOwner">
	<Grid DataContext="{Binding Path=GroupContext, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="0.6*" />
			<ColumnDefinition/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition/> 
			<RowDefinition/>
			<RowDefinition/>
			<RowDefinition/>
		</Grid.RowDefinitions>
		<TextBlock Text="From language:" VerticalAlignment="Center"/> 
		<TextBox Text="{Binding FromLanguage}" Grid.Column="1" VerticalAlignment="Center"/>

		<TextBlock Text="To language:" VerticalAlignment="Center" Grid.Row="1" />
		<TextBox Text="{Binding ToLanguage}" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center"/>
		
		<TextBlock Text="User:" VerticalAlignment="Center" Grid.Row="2" />
		<ComboBox ItemsSource="{Binding FriendsCollection}" DisplayMemberPath="UserHandle" Grid.Row="2" Grid.Column="1"
				  DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" Height="30" 
				  SelectedItem="{Binding Path=SelectedFriend}"/>
				  

		<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.ColumnSpan="2">
			<Button Command="ApplicationCommands.New" Width="70" Height="27" Content="New"/>
			<Button Command="ApplicationCommands.Close" Width="70" Height="27" Content="Close" Margin="3,0,0,0"/>
		</StackPanel>
	</Grid>
</metro:Window>
